package com.hdu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdu.entity.TeachPlan;
import com.hdu.vo.BindTeachPlanMediaVo;
import com.hdu.vo.TeachPlanVo;

import java.util.List;

public interface ITeachPlanService extends IService<TeachPlan> {
    List<TeachPlanVo> findTeachPlanTree(Long courseId);

    void saveTeachPlan(TeachPlan teachplan);

    void deleteTeachPlan(Long teachPlanId);

    void orderByTeachPlan(String moveType, Long teachPlanId);

    TeachPlan getTeachPlan(Long teachPlanId);

    /**
     * 教学计划绑定媒资信息
     *
     * @param bindTeachPlanMediaVo
     */
    void associationMedia(BindTeachPlanMediaVo bindTeachPlanMediaVo);

    /** 解绑教学计划与媒资信息
     * @param teachPlanId       教学计划id
     * @param mediaId           媒资信息id
     */
    void unAssociationMedia(Long teachPlanId, String mediaId);
}
